function itIsRunning=checkRunningProcess(taskToLookFor)

% Now make up the command line with the proper argument
% that will find only the process we are looking for.
commandLine = sprintf('tasklist /FI "IMAGENAME eq %s"', taskToLookFor);
% Now execute that command line and accept the result into "result".
[~,result] = system(commandLine);
% Look for our program's name in the result variable.
itIsRunning = ~isempty(strfind(lower(result), lower(taskToLookFor)));

end


